import React from 'react';
import { useStorage } from './useStorage';

// 自定义HOOK:
const CureentHookView = () => {
  const [token, setToken] = useStorage('token')
  console.log("token->:", token)
  return (
    <div>
      <h1>CureentHookView</h1>
      <button type="button" onClick={() => {
        setToken("wserqwarweklr;uso8234523w87asfdasejflasj")
      }}>setToken</button>
    </div>
  );
}

export default CureentHookView;
